package com.liu.chain;

public class Client {
    public static void main(String[] args) {
        Request request = new Request();
        Handler handler1 = new ConcreteHandler1();
        Handler handler2 = new ConcreteHandler2();
        handler1.setLevel(1);
        handler2.setLevel(2);
        handler1.setNextHanlder(handler2);
        System.out.println(handler1.handlerRequest(request));
    }
}

